// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .CS}

03A4: script_name 'POLDRV' 

:POLDRV_10
0001: wait 0 ms 
00D6: if 
0256:   player $player_char defined 
004D: jump_if_false @POLDRV_10 

:POLDRV_1011  
0001: wait 1000 ms 

00D6: if and
0038:   $8961 == 1 // $ == int
0038:   $onmission == 1 // $ == int 
004D: jump_if_false @POLDRV_1011 


               
:TELKA_533
0001: wait 10 ms 


00D6: if and
04C4: create_coordinate 10@ 11@ 12@ from_actor $player_actor offset 1.1 1.1 1.1 
05EF: 1@ = random_actor_near_point 10@ 11@ 12@ in_radius 15.0 find_next 0 pass_deads 1 //IF and SET 
then
    :nextTurn
    0470: 9@ = actor 1@ armed_weapon

    00D6: if
        0039:   9@ == 114 // @ == int
    then
       0002: jump @girlFound
    end

    00D6: if 
    05EF: 4@ = random_actor_near_point 10@ 11@ 12@ in_radius 15.0 find_next 1 pass_deads 1 //IF and SET 
    then
    0002: jump @nextTurn
    end
    

end

0002: jump @TELKA_533
:girlFound

:POLDRV_38
          
0001: wait 0 ms  
  
00D6: if and
056D:   actor 1@ defined
0038:   $8961 == 1 // $ == int
//0038:   $onmission == 1 // $ == int 
004D: jump_if_false @POLDRV_1011
                
00A0: store_actor 1@ position_to 2@ 3@ 4@
      



00D6: if and
00E1:   player 0 pressed_button 4
00F6:   player $player_char 0 2@ 3@ 4@ radius 1.1 1.1 1.1 
004D: jump_if_false @POLDRV_38 

01B4: set_player $player_char can_move 0

016A: fade 0 900 ms 
0001: wait 1000 ms 

03C8: set_camera_directly_before_player

                       
01B1: give_player $PLAYER_CHAR weapon 115 ammo 68 // Load the weapon model before using this

0170: 5@ = player $PLAYER_CHAR z_angle
000F: 5@ -= 180.0 // @ -= float

00D6: if
0023:   0.0 > 5@ // float > @
then
000B: 5@ += 360.0 // @ += float
end
0173: set_actor 1@ z_angle_to 5@
04C4: create_coordinate 2@ 3@ 4@ from_actor $player_actor offset 0.0 0.90 -0.9
00A1: put_actor 1@ at 2@ 3@ 4@

016A: fade 1 700 ms 
0001: wait 500 ms 

022D: set_actor 1@ to_look_at_player $player_char 
0210: player $player_char look_at_actor 1@  
04EB: actor 1@ crouch 1 9999999 ms    
04EB: actor $player_actor crouch 1 9999999 ms

0001: wait 4000 ms    

01B4: set_player $player_char can_move 1
04EB: actor $player_actor crouch 0 9999999 ms 
04EB: actor 1@ crouch 0 9999999 ms 
01B1: give_player $PLAYER_CHAR weapon 0 ammo 68 // Load the weapon model before using this

0002: jump @POLDRV_38 
